import request from '@/utils/request'

// 查询财务核心-凭证明细列表
export function listFinAuxiliaryAccountingDetail(query) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/list',
    method: 'get',
    params: query
  })
}

// 查询财务核心-凭证明细详细
export function getFinAuxiliaryAccountingDetail(id) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/' + id,
    method: 'get'
  })
}

// 获取基金账套摘要列表
export function getAbstractContentList(query) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/getAbstractContentList',
    method: 'get',
    params: query
  })
}

// 保存财务核心-凭证明细
export function saveFinAuxiliaryAccountingDetail(data) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/save',
    method: 'post',
    data: data
  })
}

// 删除财务核心-凭证明细
export function delFinAuxiliaryAccountingDetail(id) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/' + id,
    method: 'delete'
  })
}

// 导出财务核心-凭证明细
export function exportFinAuxiliaryAccountingDetail(query) {
  return request({
    url: '/auxiliaryAccounting/finAuxiliaryAccountingDetail/export',
    method: 'get',
    params: query
  })
}
